package com.juben.svr.domain;

import com.juben.svr.domain.Enum.UserRealnameState;
import com.juben.svr.domain.Enum.UserState;
import com.juben.svr.domain.Enum.WhetherMember;

public class User {
    private Integer UID;
    private String Uname;

    private String account;
    private String Upassword;
    private String phone;
    private String Email;

    private String emailCode;
    private Integer Roleid;
    private String realname_state;
    private String Rolename;

    private String real_name;
    private Integer total_likes;
    private Integer total_works;
    private String Udate;
    private String whether_member;
    private String member_start;
    private String member_end;
<<<<<<< HEAD
    private String headImg;
=======
    private String headlmg;
>>>>>>> 38a1dbe3941ebf5713fbf4c6d3dbf69154c425d3
    private String User_synopsis;
    private String notes;


    private String User_state;

    public String getRolename() {
        return Rolename;
    }

    public void setRolename(String rolename) {
        Rolename = rolename;
    }

    public String getEmailCode() {
        return emailCode;
    }

    public void setEmailCode(String emailCode) {
        this.emailCode = emailCode;
    }

    public Integer getUID() {
        return UID;
    }

    public void setUID(Integer UID) {
        this.UID = UID;
    }

    public String getUname() {
        return Uname;
    }

    public void setUname(String uname) {
        Uname = uname;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getUpassword() {
        return Upassword;
    }

    public void setUpassword(String Upassword) {
        this.Upassword = Upassword;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return Email;
    }

    public void setEmail(String email) {
        Email = email;
    }

    public Integer getRoleid() {
        return Roleid;
    }

    public void setRoleid(Integer roleid) {
        Roleid = roleid;
    }

//    public String getRealname_state() {
//        return realname_state;
//    }
//
//    public void setRealname_state(String realname_state) {
//        this.realname_state = realname_state;
//    }

    public Integer getTotal_likes() {
        return total_likes;
    }

    public void setTotal_likes(Integer total_likes) {
        this.total_likes = total_likes;
    }

    public Integer getTotal_works() {
        return total_works;
    }

    public void setTotal_works(Integer total_works) {
        this.total_works = total_works;
    }

    public String getUdate() {
        return Udate;
    }

    public void setUdate(String udate) {
        Udate = udate;
    }

//    public Enum getWhether_member() {
//        return whether_member;
//    }
//
//    public void setWhether_member(Enum whether_member) {
//        this.whether_member = whether_member;
//    }

    public String getMember_start() {
        return member_start;
    }

    public void setMember_start(String member_start) {
        this.member_start = member_start;
    }

    public String getMember_end() {
        return member_end;
    }

    public void setMember_end(String member_end) {
        this.member_end = member_end;
    }

    public String getHeadlmg() {
<<<<<<< HEAD
        return headImg;
    }

    public void setHeadlmg(String headlmg) {
        this.headImg = headlmg;
=======
        return headlmg;
    }

    public void setHeadlmg(String headlmg) {
        this.headlmg = headlmg;
>>>>>>> 38a1dbe3941ebf5713fbf4c6d3dbf69154c425d3
    }

    public String getUser_synopsis() {
        return User_synopsis;
    }

    public void setUser_synopsis(String user_synopsis) {
        User_synopsis = user_synopsis;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public String getReal_name() {
        return real_name;
    }

    public void setReal_name(String real_name) {
        this.real_name = real_name;
    }

//    public Enum getUser_state() {
//        return User_state;
//    }
//
//    public void setUser_state(Enum user_state) {
//        User_state = user_state;
//    }


    public String getRealname_state() {
        return realname_state;
    }

    public void setRealname_state(String realname_state) {
        this.realname_state = realname_state;
    }

    @Override
    public String toString() {
        return "User{" +
                "UID=" + UID +
                ", Uname='" + Uname + '\'' +
                ", account='" + account + '\'' +
                ", Upassword='" + Upassword + '\'' +
                ", phone='" + phone + '\'' +
                ", Email='" + Email + '\'' +
                ", emailCode='" + emailCode + '\'' +
                ", Roleid=" + Roleid +
                ", realname_state='" + realname_state + '\'' +
                ", Rolename='" + Rolename + '\'' +
                ", real_name='" + real_name + '\'' +
                ", total_likes=" + total_likes +
                ", total_works=" + total_works +
                ", Udate='" + Udate + '\'' +
                ", whether_member='" + whether_member + '\'' +
                ", member_start='" + member_start + '\'' +
                ", member_end='" + member_end + '\'' +
<<<<<<< HEAD
                ", headlmg='" + headImg + '\'' +
=======
                ", headlmg='" + headlmg + '\'' +
>>>>>>> 38a1dbe3941ebf5713fbf4c6d3dbf69154c425d3
                ", User_synopsis='" + User_synopsis + '\'' +
                ", notes='" + notes + '\'' +
                ", User_state='" + User_state + '\'' +
                '}';
    }

    public UserRealnameState getRealnameState() {
        System.out.println("Uname:"+Uname);
        System.out.println("realname_state:"+realname_state);

        return UserRealnameState.fromValue(realname_state);
    }
    public void setRealnameState(UserRealnameState realnameState) {
        this.realname_state = realnameState.getValue();
    }

    public WhetherMember getWhetherMember() {
        return WhetherMember.fromValue(whether_member);
    }
    public void setWhetherMember(WhetherMember whetherMember) {
        this.whether_member = whetherMember.getValue();
    }
    public UserState getUserState() {
        return UserState.fromValue(User_state);
    }
    public void setUserState(UserState userState) {
        this.User_state = userState.getValue();
    }

}
